#!bin/bash
echo -e "\033[1m 你选择的是使用docker配置建站环境，请选择子项目\033[35m"
echo -e "\033[1m ------------------------【1】仅仅安装docker服务----------------------\033[0m"
echo -e "\033[1m ------------------------【2】使用docker搭建属于自己的博客网站（选择此项请先确保已安装docker服务）-----------------------\033[0m"
echo -e "\033[1m ------------------------【3】更换到更快的docker镜像仓库地址-----------------------\033[0m"
echo -e "\033[1m ----------------------- 【4】使用centos镜像通过Dockerfile构建LAP建站环境-----------------------\033[0m"
echo -e "\033[1m ----------------------- 【5】使用docker搭建DISCUZ论坛系统-----------------------\033[0m"
echo -e "\033[1m ----------------------- 【6】高效管理容器-----------------------\033[0m"
echo -e "\033[1m ----------------------- 【7】使用关键字查询在线镜像仓库-----------------------\033[0m"
echo -e "\033[1m ----------------------- 【8】解决虚拟机无法启动docker的问题-----------------------\033[0m"
echo -e "\033[1m ----------------------- 【9】使用docker配置MariaDB+PhpMyAdmin服务-----------------------\033[0m"
read dockerinstall
##############---------------------------安装docker服务环境开始判断--------------------------#########
if [ $dockerinstall == 1 ];then
	sh configure/install/docker/install.sh
##############---------------------------安装docker服务环境结束判断-------------------------#########

elif [ $dockerinstall == 2 ];then 
	sh configure/install/docker/docker-blogweb.sh

elif [ $dockerinstall == 3 ];then
	sh configure/install/docker/docker-daemon.sh

elif [ $dockerinstall == 4 ];then
	sh configure/install/docker/dockerfile.sh
	#-----------------------------------------------dockerinstallz == 2结束--------------------------------###
elif [ $dockerinstall == 5 ];then
	sh configure/install/discuz/discuz-install.sh

elif [ $dockerinstall == 6 ];then
	sh configure/install/docker/stop-rm.sh

elif [ $dockerinstall == 7 ];then
	if [ -z "$rpmd" ];then
		echo 请输入关键字
		read image
		docker search $image
	else
		echo 请先安装docker
	fi
elif [ $dockerinstall == 8 ];then
	sh configure/install/docker/docker-false.sh
elif [ $dockerinstall == 9 ];then
	sh configure/install/docker/mariadb-and-phpmyadmin.sh
else
	echo 选择错误
fi
	
